.class public Lcom/hierynomus/smbj/smb2/messages/n;
.super Ljava/lang/Object;
.source "SMB2ResponseMessageFactory.java"


# direct methods
.method public static a(Lcom/hierynomus/smbj/common/b;)Lcom/hierynomus/smbj/smb2/d;
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/hierynomus/protocol/commons/buffer/Buffer$BufferException;,
            Lcom/hierynomus/smbj/transport/TransportException;
        }
    .end annotation

    const/4 v0, 0x4

    .line 1
    invoke-virtual {p0, v0}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->e(I)[B

    move-result-object v1

    new-array v0, v0, [B

    fill-array-data v0, :array_0

    const-string v2, "Could not find SMB2 Packet header"

    invoke-static {v1, v0, v2}, Lcom/hierynomus/smbj/common/a;->a([B[BLjava/lang/String;)V

    const/16 v0, 0x8

    .line 2
    invoke-virtual {p0, v0}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->g(I)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    .line 3
    invoke-virtual {p0}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->g()I

    move-result v0

    invoke-static {v0}, Lcom/hierynomus/smbj/smb2/SMB2MessageCommandCode;->lookup(I)Lcom/hierynomus/smbj/smb2/SMB2MessageCommandCode;

    move-result-object v0

    const/4 v1, 0x0

    .line 4
    invoke-virtual {p0, v1}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->f(I)V

    .line 5
    sget-object v1, Lcom/hierynomus/smbj/smb2/messages/n$a;->a:[I

    invoke-virtual {v0}, Ljava/lang/Enum;->ordinal()I

    move-result v2

    aget v1, v1, v2

    packed-switch v1, :pswitch_data_0

    .line 6
    new-instance p0, Lcom/hierynomus/smbj/transport/TransportException;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "Unknown SMB2 Message Command type: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/hierynomus/smbj/transport/TransportException;-><init>(Ljava/lang/String;)V

    throw p0

    .line 7
    :pswitch_0
    new-instance v0, Lcom/hierynomus/smbj/smb2/messages/o;

    invoke-direct {v0}, Lcom/hierynomus/smbj/smb2/messages/o;-><init>()V

    invoke-virtual {v0, p0}, Lcom/hierynomus/smbj/smb2/d;->a(Lcom/hierynomus/smbj/common/b;)Lcom/hierynomus/smbj/smb2/d;

    return-object v0

    .line 8
    :pswitch_1
    new-instance v0, Lcom/hierynomus/smbj/smb2/messages/k;

    invoke-direct {v0}, Lcom/hierynomus/smbj/smb2/messages/k;-><init>()V

    invoke-virtual {v0, p0}, Lcom/hierynomus/smbj/smb2/d;->a(Lcom/hierynomus/smbj/common/b;)Lcom/hierynomus/smbj/smb2/d;

    return-object v0

    .line 9
    :pswitch_2
    new-instance v0, Lcom/hierynomus/smbj/smb2/messages/f;

    invoke-direct {v0}, Lcom/hierynomus/smbj/smb2/messages/f;-><init>()V

    invoke-virtual {v0, p0}, Lcom/hierynomus/smbj/smb2/d;->a(Lcom/hierynomus/smbj/common/b;)Lcom/hierynomus/smbj/smb2/d;

    return-object v0

    .line 10
    :pswitch_3
    new-instance v0, Lcom/hierynomus/smbj/smb2/messages/t;

    invoke-direct {v0}, Lcom/hierynomus/smbj/smb2/messages/t;-><init>()V

    invoke-virtual {v0, p0}, Lcom/hierynomus/smbj/smb2/d;->a(Lcom/hierynomus/smbj/common/b;)Lcom/hierynomus/smbj/smb2/d;

    return-object v0

    .line 11
    :pswitch_4
    new-instance v0, Lcom/hierynomus/smbj/smb2/messages/e;

    invoke-direct {v0}, Lcom/hierynomus/smbj/smb2/messages/e;-><init>()V

    invoke-virtual {v0, p0}, Lcom/hierynomus/smbj/smb2/d;->a(Lcom/hierynomus/smbj/common/b;)Lcom/hierynomus/smbj/smb2/d;

    return-object v0

    .line 12
    :pswitch_5
    new-instance v0, Lcom/hierynomus/smbj/smb2/messages/a;

    invoke-direct {v0}, Lcom/hierynomus/smbj/smb2/messages/a;-><init>()V

    invoke-virtual {v0, p0}, Lcom/hierynomus/smbj/smb2/d;->a(Lcom/hierynomus/smbj/common/b;)Lcom/hierynomus/smbj/smb2/d;

    return-object v0

    .line 13
    :pswitch_6
    new-instance v0, Lcom/hierynomus/smbj/smb2/messages/m;

    invoke-direct {v0}, Lcom/hierynomus/smbj/smb2/messages/m;-><init>()V

    invoke-virtual {v0, p0}, Lcom/hierynomus/smbj/smb2/d;->a(Lcom/hierynomus/smbj/common/b;)Lcom/hierynomus/smbj/smb2/d;

    return-object v0

    .line 14
    :pswitch_7
    new-instance v0, Lcom/hierynomus/smbj/smb2/messages/d;

    invoke-direct {v0}, Lcom/hierynomus/smbj/smb2/messages/d;-><init>()V

    invoke-virtual {v0, p0}, Lcom/hierynomus/smbj/smb2/d;->a(Lcom/hierynomus/smbj/common/b;)Lcom/hierynomus/smbj/smb2/d;

    return-object v0

    .line 15
    :pswitch_8
    new-instance v0, Lcom/hierynomus/smbj/smb2/messages/j;

    invoke-direct {v0}, Lcom/hierynomus/smbj/smb2/messages/j;-><init>()V

    invoke-virtual {v0, p0}, Lcom/hierynomus/smbj/smb2/d;->a(Lcom/hierynomus/smbj/common/b;)Lcom/hierynomus/smbj/smb2/d;

    return-object v0

    .line 16
    :pswitch_9
    new-instance v0, Lcom/hierynomus/smbj/smb2/messages/c;

    invoke-direct {v0}, Lcom/hierynomus/smbj/smb2/messages/c;-><init>()V

    invoke-virtual {v0, p0}, Lcom/hierynomus/smbj/smb2/d;->a(Lcom/hierynomus/smbj/common/b;)Lcom/hierynomus/smbj/smb2/d;

    return-object v0

    .line 17
    :pswitch_a
    new-instance v0, Lcom/hierynomus/smbj/smb2/messages/g;

    invoke-direct {v0}, Lcom/hierynomus/smbj/smb2/messages/g;-><init>()V

    invoke-virtual {v0, p0}, Lcom/hierynomus/smbj/smb2/d;->a(Lcom/hierynomus/smbj/common/b;)Lcom/hierynomus/smbj/smb2/d;

    return-object v0

    .line 18
    :pswitch_b
    new-instance v0, Lcom/hierynomus/smbj/smb2/messages/r;

    invoke-direct {v0}, Lcom/hierynomus/smbj/smb2/messages/r;-><init>()V

    invoke-virtual {v0, p0}, Lcom/hierynomus/smbj/smb2/d;->a(Lcom/hierynomus/smbj/common/b;)Lcom/hierynomus/smbj/smb2/d;

    return-object v0

    .line 19
    :pswitch_c
    new-instance v0, Lcom/hierynomus/smbj/smb2/messages/q;

    invoke-direct {v0}, Lcom/hierynomus/smbj/smb2/messages/q;-><init>()V

    invoke-virtual {v0, p0}, Lcom/hierynomus/smbj/smb2/d;->a(Lcom/hierynomus/smbj/common/b;)Lcom/hierynomus/smbj/smb2/d;

    return-object v0

    .line 20
    :pswitch_d
    new-instance v0, Lcom/hierynomus/smbj/smb2/messages/SMB2SessionSetup;

    invoke-direct {v0}, Lcom/hierynomus/smbj/smb2/messages/SMB2SessionSetup;-><init>()V

    invoke-virtual {v0, p0}, Lcom/hierynomus/smbj/smb2/d;->a(Lcom/hierynomus/smbj/common/b;)Lcom/hierynomus/smbj/smb2/d;

    return-object v0

    .line 21
    :pswitch_e
    new-instance v0, Lcom/hierynomus/smbj/smb2/messages/i;

    invoke-direct {v0}, Lcom/hierynomus/smbj/smb2/messages/i;-><init>()V

    invoke-virtual {v0, p0}, Lcom/hierynomus/smbj/smb2/d;->a(Lcom/hierynomus/smbj/common/b;)Lcom/hierynomus/smbj/smb2/d;

    return-object v0

    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_e
        :pswitch_d
        :pswitch_c
        :pswitch_b
        :pswitch_a
        :pswitch_9
        :pswitch_8
        :pswitch_7
        :pswitch_6
        :pswitch_5
        :pswitch_4
        :pswitch_3
        :pswitch_2
        :pswitch_1
        :pswitch_0
    .end packed-switch

    :array_0
    .array-data 1
        -0x2t
        0x53t
        0x4dt
        0x42t
    .end array-data
.end method
